package com.zbkj.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 课程视频VO对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CourseVideoVo对象", description="课程视频响应对象")
public class CourseVideoVo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "视频ID")
    private Integer id;

    @ApiModelProperty(value = "关联的课程ID")
    private Integer courseId;

    @ApiModelProperty(value = "课时编号")
    private Integer episodeNumber;

    @ApiModelProperty(value = "课时标题")
    private String title;

    @ApiModelProperty(value = "视频URL")
    private String videoUrl;

    @ApiModelProperty(value = "视频封面图")
    private String coverImage;

    @ApiModelProperty(value = "视频时长(秒)")
    private Integer duration;

    @ApiModelProperty(value = "课时描述")
    private String description;

    @ApiModelProperty(value = "是否免费预览(0否1是)")
    private Boolean freePreview;

    @ApiModelProperty(value = "视频时长（格式化后的字符串）")
    private String durationFormat;
}